package main

import "fmt"

type Rectangle struct {
	w, h int
}

func Area(r *Rectangle) int {
	return r.h * r.w
}

func Perimeter(r *Rectangle) int {
	return r.h*2 + r.w*2
}
func main() {
	r := &Rectangle{10, 5}
	area := Area(r)
	fmt.Println("area: ", area)
	perimeter := Perimeter(r)
	fmt.Println("perimeter: ", perimeter)
}
